//reducer接收两个参数
//接收action进行逻辑处理
const initState = {
  count: 0
}
//判断发送过来的action 做相应的逻辑处理
exports.reducer = (state = initState, action) => {
  console.log('reducer', action, state.count)
  switch (action.type) {
    case 'add_action':
      return {
        count: state.count + 1
      }
    default:
      return state
  }
}